//
//  BBYClientDataCell.m
//  BearSiX
//
//  Created by Tom on 16/3/26.
//  Copyright © 2016年 Tom. All rights reserved.
//

#import "BBYClientDataCell.h"

@implementation BBYClientDataCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createUI];
    }
    return self;
}
-(UILabel *)typeLab{

    if (!_typeLab) {
        _typeLab = [[UILabel alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/18, 0, WINSIZEWIDTH/5, self.height)];
        _typeLab.textColor = [UIColor colorWithHexString:@"6e6f70"];
        _typeLab.font = [UIFont systemFontOfSize:WINSIZEWIDTH/20];
    }
    return _typeLab;
}
-(UITextField *)detilField{

    if (!_detilField) {
        _detilField = [[UITextField alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.typeLab.frame)+WINSIZEWIDTH/15, 0, WINSIZEWIDTH-CGRectGetMaxX(self.typeLab.frame)-WINSIZEWIDTH/8, self.typeLab.height)];
        _detilField.textColor = [UIColor blackColor];
        _detilField.font = self.typeLab.font;
    }
    return _detilField;
}
-(void)createUI{

    [self addSubview:self.typeLab];
    [self addSubview:self.detilField];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
